package controllers

type MainController struct {
	CommonController
}

func (this *MainController) Get() {
	this.Data["IsHome"] = true
	ck, err := this.Ctx.Request.Cookie("uname")
	cookieuname := ""
	if err == nil {
		cookieuname = ck.Value
	}
	this.Data["Uname"] = cookieuname
	this.Data["IsLogin"] = checkAccount(this.Ctx)
	this.TplName = "index.html"
}
